package com.yonyougov.devops.cruxcisupport.k8s.rest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * 获取pod的日志
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "获取Pod日志入参")
public class PodLogRestRequest {
    @ApiModelProperty(required = true, value = "环境名称")
    @NotEmpty
    private String envName;

    @ApiModelProperty(required = true, value = "pod名称")
    @NotEmpty
    private String appName;

    @ApiModelProperty(required = true, value = "获取日志的方式")
    @NotEmpty
    private String flag;

    @ApiModelProperty(value = "从多少秒开始查看日志")
    private Integer seconds;
}
